package echecs;

public class Coups
{

    private Case depart;
    private Case arrivee;
    private APiece piece;

    public Coups(APiece piece, Case depart, Case arrivee)
    {
        this.piece = piece;
        this.depart = depart;
        this.arrivee = arrivee;
    }

    @Override
    public String toString()
    {
        super.toString();
        return piece.toString() + ": " + depart.toChaine() + "-" + arrivee.toChaine();
    }

    public APiece getPiece()
    {
        return piece;
    }

    public Case getArrivee()
    {
        return arrivee;
    }

    public Case getDepart()
    {
        return depart;
    }
}
